﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>Wassup中国</title> ﻿
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="images/favicon.png">
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/default.min.css?t=227" />
<link rel="stylesheet" href="js/layui/css/layui.css" />
<!--[if (gte IE 9)|!(IE)]><!-->
<script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/layui/layui.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="lib/amazeui/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script type="text/javascript" src="lib/handlebars/handlebars.min.js"></script>
<script type="text/javascript" src="lib/iscroll/iscroll-probe.js"></script>
<script type="text/javascript" src="lib/amazeui/amazeui.min.js"></script>
<script type="text/javascript" src="lib/raty/jquery.raty.js"></script>
<script type="text/javascript" src="js/main.min.js?t=1"></script>
</head>
<body>
	<jsp:include page="/head"></jsp:include>
	<div>
		<header class="header-article-list">
			<h1>在线留言</h1>

		</header>
		<div>
			<form id="form_msg" class="message-form" method="post">

				<label>姓名 <input type="text" name="username"> <span>*</span>
				</label> <label>电话 <input type="text" name="phone"> <span>*</span>
				</label> <label>邮箱 <input type="email" name="email"> <span>*</span>
				</label> <label>内容 <textarea name="content"></textarea> <span>*</span>
				</label>


				<button id="btn_msg" type="button" class="am-btn am-btn-danger">提交</button>
			</form>
		</div>
	</div>
	﻿<jsp:include page="/foot"></jsp:include>
</body>
<script type="text/javascript">
	layui.use([ 'layer' ], function() {
		var layer = layui.layer;
		$(function() {
			$("#btn_msg").click(function() {
				$.post("message", $("#form_msg").serialize(), function(res) {
					alert(res.message);
				}, "json");
			})
		})
	})
</script>
</html>